<%@ page contentType="text/html;charset=UTF-8"%>

<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.system.tablequery.TableQuery"%>
<%@ page import="jt.classic.system.tablequery.TableQueryCenter"%>
<%
			String context = jt.classic.system.context.ISystemContext
			.getContextPath();

	String size = StringTool.checkString(request.getParameter("size"));

	if (size.equals("")) {
		size = "20";
	}

	String queryKey = StringTool.checkString(request
			.getParameter("queryKey"));

	String orderby = StringTool.checkString(request
			.getParameter("orderby"));

	String orderbyKey = StringTool.checkString(request
			.getParameter("orderbykey"));

	TableQueryCenter register = TableQueryCenter.getInstance();

	TableQuery query = register.getTableQuery(queryKey);

	if (query != null) {
%>
<script src="<%=context %>/site/ui/lib/ligerUI/js/plugins/ligerGrid.js"
	type="text/javascript"></script>
<script
	src="<%=context %>/site/ui/lib/ligerUI/js/plugins/ligerToolBar.js"
	type="text/javascript"></script>
<script
	src="<%=context %>/site/ui/lib/ligerUI/js/plugins/ligerResizable.js"
	type="text/javascript"></script>

<script src="<%=context %>/site/ui/lib/extend/jquery.groove.js"
	type="text/javascript"></script>
<script src="<%=context %>/site/ui/lib/extend/jquery.groovequery.js"
	type="text/javascript"></script>
<script>
var queryKey = "<%=queryKey%>";
</script>
<%
if (!StringTool.checkString(query.icssurl()).equals("")) {
%>
<link rel="stylesheet" type="text/css"
	href="<%=context + query.icssurl()%>" />
<%
}
%>
<%
if (!StringTool.checkString(query.ijsurl()).equals("")) {
%>
<script src="<%=context + query.ijsurl()%>"></script>
<%
}
%>
<script>
var queryKey = "<%=queryKey%>";
//var gridPanel;
$(function() {
			//gridPanel = new $.grooveQuery("ligerGrid4Groove_<%=queryKey%>", "<%=queryKey%>", 30, null, 400);
			
			//$("#pageloading").hide();
		});
</script>
<%
} else {
%>
<p><font color="red">表数据通用查询 <b>'<%=queryKey%>'</b> 尚未定义</font></p>
<%
}
%>
